/*
 * User: user
 * Date: 27/04/2008
 * Time: 23:29:32
 */
package org.conann.bindings;

import org.conann.DynamicBinding;

import javax.webbeans.binding.NonBinding;

public class PayByBinding extends DynamicBinding<PayBy> implements PayBy {

    private PaymentType type;
    private String description;

    public PayByBinding(PaymentType type) {
        this(type, null);
    }

    public PayByBinding(PaymentType type, String description) {
        this.type = type;
        this.description = description;
    }

    public PaymentType value() {
        return type;
    }

    @NonBinding
    public String description() {
        return description;
    }
}